import request from '@/utils/request'

// 查询岗位列表
export function listPostApi(data) {
  return request.post('/system/post/list', data)
}

// 查询岗位详细
export function infoPostApi(postId) {
  return request.get('/system/post/info', { id: postId })
}

// 新增岗位
export function addPostApi(data) {
  return request.post('/system/post/add', data)
}

// 修改岗位
export function editPostApi(data) {
  return request.post('/system/post/edit', data)
}

// 删除岗位
export function delPostApi(postId) {
  return request.post('/system/post/delete', { id: postId })
}

// 导出
export function exportPostApi(data) {
  request.download('/system/post/export',data)
}

// 岗位选择列表
export function selectPostApi() {
  return request.get('/system/post/get-select')
}

